package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class ClientPlantQueryObject extends  QueryObject {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endingDate;
    private String operatorName;
    private String clientName;

    public Date getBeginDate() {
        return beginDate != null && !"".equals(beginDate) ? beginDate : null;
    }

    public Date getEndingDate() {
        return endingDate != null && !"".equals(endingDate) ? endingDate : null;
    }

    public String getOperatorName() {
        return operatorName != null && !"".equals(operatorName) ? operatorName : null;
    }


    public String getClientName() {
        return clientName != null && !"".equals(clientName) ? clientName : null;
    }


}
